﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Model
{

    [MetadataType(typeof(Sys_Controllers_Metadata))]
    [DisplayName("系统模块")]
    public partial class Sys_Controllers
    {
        public Sys_Controllers()
        {
            this.Id = Guid.NewGuid();
        }

        public class Sys_Controllers_Metadata
        {
            [ScaffoldColumn(false)]
            public System.Guid Id { get; set; }

            [DisplayName("显示名称")]
            [Required]
            public string DisplayName { get; set; }

            [DisplayName("控制器名称")]
            [Required]
            public string ControllerName { get; set; }

            [DisplayName("上级")]
            [DropDownList("Sys_Controllers", "Id", "DisplayName", "")]
            public object LastId { get; set; }

            [DisplayName("排列顺序")]
            public int IntOrder { get; set; }

            [DisplayName("是否启用")]
            public object Enable { get; set; }
        }
    }
}
